﻿
#region Using

using System.Runtime.Serialization;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ServiceModel.DomainServices.Server;
using System;

#endregion Using

namespace NetBay.Core.BusinessEntities.ActiveDirectory
{
    /// <summary>Represent AD information User rio correspondence.</summary>
    [DataContract]
    public class AdInformationUserRio : IEntity
    {
        #region Attributs

        /// <summary>Type.</summary>
        private UserRioInformationType _Type;

        /// <summary>Value.</summary>
        private string _Value;

        /// <summary>Ad name Information.</summary>
        private string _AdName;

        #endregion Attributs

        #region Properties

        /// <summary>
        /// Gets or sets the key id.
        /// </summary>
        /// <value>The key id.</value>
        [DataMember]
        [Key]
        public Guid KeyId { get; set; }

        /// <summary>
        /// Gets or sets the key id.
        /// </summary>
        /// <value>The key id.</value>
        [DataMember]
        public Guid ForeignKey1 { get; set; }

        /// <summary>
        /// Gets or sets the type information.
        /// </summary>
        /// <value>The type information.</value>
        [DataMember]
        public UserRioInformationType Type
        {
            get { return _Type; }
            set { _Type = value; }
        }

        /// <summary>
        /// Gets or sets the information value.
        /// </summary>
        /// <value>The information value.</value>
        [DataMember]
        public string Value
        {
            get { return _Value; }
            set { _Value = value; }
        }

        /// <summary>
        /// Gets or sets the information Ad Name.
        /// </summary>
        /// <value>The information Ad Name.</value>
        [DataMember]
        public string AdName
        {
            get { return _AdName; }
            set { _AdName = value; }
        }

        #endregion Properties

        #region Init/Constructor

        /// <summary>
        /// Default constructor
        /// </summary>
        public AdInformationUserRio()
        {
            KeyId = Guid.NewGuid();
        }

        #endregion Init/Constructor


    }
}